﻿<?xml version="1.0" encoding="UTF-8"?>

<ValidExpressions>

  <RegEx Id="PhoneNumber">
    <Pattern>
      ^((\(\d{3}\)|\d{3}) ?\-?\d{3} ?\-?\d{4})?$
    </Pattern>
    <Example>
      (525) 555-1234
    </Example>
  </RegEx>

  <RegEx Id="EMail">
    <Pattern>
      ^([A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,}))?$
    </Pattern>
    <Example>
      Norm@SamsBar.com
    </Example>
  </RegEx>

  <RegEx Id="ZipCode">
    <Pattern>
      ^(\d{5}([\-]\d{4})?)?$
    </Pattern>
    <Example>
      12345-1234
    </Example>
  </RegEx>

</ValidExpressions>
